Use GDB 'O' packets for console output if the serial line is shared
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Sat, 23 Sep 2006 13:47:00 +0000 (14:47 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Sat, 23 Sep 2006 13:47:00 +0000 (14:47 +0100)
commitc180e655c186e6cacc56bbdd20bb301f5df2b10b
tree6c08620ec67ad46d5b60fd0091625371fb17a887
parentd85cf94621ab3531828430b0b50f860d0ff81887
Use GDB 'O' packets for console output if the serial line is shared
and GDB is attached.

It may be necessary for gdb and the console to share a serial port.
This patch utilises the GDB protocol to encode console output.

Based on a patch from Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/gdbstub.c
xen/drivers/char/console.c
xen/include/xen/console.h
xen/include/xen/gdbstub.h